<!--
  描述：工程师升级考试地址详情页
  @author tanghongjun
  @since 2020-08-19 11:18:36
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>新增或编辑分类</title>
</head>
<body>

<div class="layui-fluid" id="reimbursementAmount">

    <div class="layui-card">
        <form method="post" action="" class="layui-form" lay-filter="zmn-form">

            <input type="hidden" name="groupId" th:value="${productGroup.groupId}"/>
            <div class="layui-split">&nbsp;</div>
            <div class="layui-form-item">
                <label class="layui-form-label layui-form-required">报销金额：</label>

                    <div class="layui-input-inline" style="width: 150px">
                        <input type="number" name="reimbursementAmount"
                               th:value="${productGroup.reimbursementAmount==null?0:T(com.zmn.common.utils.math.MathUtil).div(productGroup.reimbursementAmount,
                        100, 2)}"
                               placeholder="请填写报销金额"
                               autocomplete="off" class="layui-input" max="999999999" min="0"
                               lay-verify="reimbursementVerify"/>
                    </div>
                    <div class="layui-input-inline" style="width: 195px;margin-top: -10px">
                        <label class="layui-form-mid layui-word-aux">
                            用于配件报销的下限金额设置
                            低于该金额则不能报销配件
                        </label>
                    </div>


            </div>


            <div class="layui-split">&nbsp;</div>
            <div class="layui-form-item layui-layout-admin">
                <div class="layui-input-block">
                    <div class="layui-footer" style="left: 0;">
                        <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit"
                                th:if="${#authPermit.checkPermit('/product/productgroup/addEdit.action')}">保存
                        </button>
                        <button class="layui-btn layui-btn-primary" onclick="cancel()" id="cancleBtn">
                            取消
                        </button>
                    </div>
                </div>
            </div>

        </form>

    </div>

</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        reimbursementAmount: [[${productGroup.reimbursementAmount}]]
    };

    layui.config({
        base: "/static/lay/",
        version: "20210909637"
    }).extend({
        index: "lib/index",
        plat_productgroup_detail: "product/productgroup/zmn.plat.productgroup.edit",
    }).use(['index', 'plat_productgroup_detail']);

</script>
</body>
</html>